package com.samsung.dao.lottery;

import java.util.List;
import java.util.Map;

import com.samsung.model.lottery.LotteryEvent;

public interface LotteryEventMapper {
    int deleteByPrimaryKey(String id);

    int insert(LotteryEvent record);

    int insertSelective(LotteryEvent record);

    LotteryEvent selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(LotteryEvent record);

    int updateByPrimaryKey(LotteryEvent record);
     
	List<LotteryEvent> listNewLottery(int max);
	
	List<LotteryEvent> checkTitle(String title);

	/**
	 * @author singleId
	 * @date 2015年5月21日 上午9:36:49 
	 * @return 
	 */
	List<LotteryEvent> getPageInfo(Map<String, Integer> paramMap);

	int getTotalCount(Map<String, Object> paramMap);
	
	/**
	 * 获取抽奖数据 
	 * @author wtj
	 * @param paramMap
	 * @return
	 */
	List<Map<String, Object>> getLotteryPageInfo(Map<String, Object> paramMap);
	
	/**
	 * 获取抽奖总数
	 * @param paramMap
	 * @return
	 */
	int getLotteryPageInfoCount(Map<String, Object> paramMap);

	
	/**
	 * 抽奖综合查询 
	 * @author wtj
	 * @param paramMap
	 * @return
	 */
	List<LotteryEvent> getCreatLotteryPageInfo(Map<String, Object> paramMap);
	
	/**
	 * 获取我发起的抽奖总数
	 * @param paramMap
	 * @return
	 */
	int getCreateListCount(Map<String, Object> paramMap);
	
	/**
	 * 获取我发起的抽奖总数
	 * @param paramMap
	 * @return
	 */
	List<Map<String, Object>> getCreateList(Map<String, Object> paramMap);
	

		

	
}